package com.unknowpupil.web.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.unknowpupil.web.base.AbstractBaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@Table(name = "coin_wallet")
@EqualsAndHashCode(callSuper = true)
public class Wallet extends AbstractBaseDomain implements Serializable {


    /**
     * 币种名,
     */
    @Column(name = "currency")
    private String currency;

    /**
     * 转账地址
     */
    @Column(name = "address")
    private String address;

    /**
     * 余额
     */
    @Column(name = "balance")
    private BigDecimal balance;

    /**
     * 冻结余额
     */
    @Column(name = "freeze_balance")
    private BigDecimal freezeBalance;

    /**
     * 私钥
     */
    @Column(name = "private_key")
    private String privateKey;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private Long userId;

    /**
     * 版本号 默认0
     */
    @Column(name = "version")
    private Long version;

    private static final long serialVersionUID = 1L;
}
